<script>
import Button from 'ant-design-vue/es/button/button'
export default {
  name: 'form-button',
  props: Button.props,
  render (h) {
    const WrapComp = 'a-button'
    const slots = Object.keys(this.$slots).reduce((pre, cur) => {
      return pre.concat(this.$slots[cur])
    }, [])
    return h(WrapComp, {
      on: this.$listeners,
      attrs: this.$attrs,
      props: this.$props
    }, slots)
  }
}
</script>
